Component({
  data: {
    isShowDialog: false
  },
  properties: {
    title: {
      type: String,
      value: ''
    }
  },
  methods: {
    /**
     * 展示对话框
     */
    showDialogHandle() {
      this.setData({
        isShowDialog: true
      });
    },

    /**
     * 对话框确认
     */
    confirmDialogHandle() {
      // todo what you want
      this.closeDialogHandle();
    },

    /**
     * 对话框取消
     */
    closeDialogHandle() {
      // todo what you want
      this.setData({
        isShowDialog: false
      });
    }
  }
});